Factoring a univariage polynomial by grouping: Problem type 1